﻿using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Web.Mvc;

namespace BestPracticesMVC.Data.DataModels
{
    public class Author
    {

        [Key]
        [DatabaseGenerated(DatabaseGeneratedOption.None)] // generate value when updated or inserted
        public int Id { get; set; }

        // unique
        //[UniqueAuthorNameAttribute]
        //[Remote("Check", "Home")]
        [StringLength(256)]
        public string Name { get; set; }
        
        public string NickName { get; set; }

    }
}